package com.xiaoxie.system.mapper;

import com.xiaoxie.system.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User getUserByUsernameAndPassword(@Param("username") String loginAct, @Param("password") String pwd);

    User selectByPrimaryKeyWithRoleAndPermission(@Param("uid") Integer id);
}